package com.webshop.JavaBean;

/**
 * CREATE TABLE `picture`  (
 `ID` int(30) NOT NULL AUTO_INCREMENT,
 `path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
 `goodsID` int(11) NOT NULL,
 `isMain` int(3) NULL DEFAULT NULL,
 `goodsAttrID` int(11) NOT NULL,
 PRIMARY KEY (`ID`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

 */
public class Picture {
    int ID;
    String path;
    int goodsID;
    int isMain;

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(int goodsID) {
        this.goodsID = goodsID;
    }

    public int getIsMain() {
        return isMain;
    }

    public void setIsMain(int isMain) {
        this.isMain = isMain;
    }

    @Override
    public String toString() {
        return "Picture{" +
                "ID=" + ID +
                ", path='" + path + '\'' +
                ", goodsID=" + goodsID +
                ", isMain=" + isMain +
                ", goodsAttrID=" + goodsAttrID +
                '}';
    }

    public int getGoodsAttrID() {
        return goodsAttrID;
    }

    public void setGoodsAttrID(int goodsAttrID) {
        this.goodsAttrID = goodsAttrID;
    }

    int goodsAttrID;


}
